package oas.domain;


/**
 * 
 * 用户类
 * 
 * @author wjy
 * @version 1.0.0
 *
 */
public class User {
	
	private Long id;
	private String username;
	private String fullName;
	private Workcell workcell;
	private String gender;
	private String email;
	private String phone;
	private int age;
	private String role;
	private boolean available;
	
	/**
	 * 
	 * 构造方法
	 * 
	 * @param id 用户id
	 * @param fullName 用户名字
	 * @param workcell 所属的部门
	 * @param gender 性别
	 * @param email 电子邮件
	 * @param phone 电话号
	 * @param age 年龄
	 * @param role 职位
	 * @param available 是否存在，删除标志位
	 */
	public User(Long id,String username, String fullName, Workcell workcell, String gender, String email, String phone, int age,
			String role, boolean available) {
		super();
		this.id = id;
		this.username = username;
		this.fullName = fullName;
		this.workcell = workcell;
		this.gender = gender;
		this.email = email;
		this.phone = phone;
		this.age = age;
		this.role = role;
		this.available = available;
	}

	/**
	 * 空构造方法
	 *
	 */
	public User() {}

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the password
	
	public String getPassword() {
		return pwd;
	}
    */
	/**
	 * @param pwd the password to set
	
	public void setPassword(String pwd) {
		this.pwd = pwd;
	}
     */
	/**
	 * @return the name
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * @param username the name to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * @return the workcell
	 */
	public Workcell getWorkcell() {
		return workcell;
	}

	/**
	 * @param workcell the workcell to set
	 */
	public void setWorkcell(Workcell workcell) {
		this.workcell = workcell;
	}

	/**
	 * @return the gender
	 */
	public String getGender() {
		return gender;
	}

	/**
	 * @param gender the gender to set
	 */
	public void setGender(String gender) {
		this.gender = gender;
	}

	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}

	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the role
	 */
	public String getRole() {
		return role;
	}

	/**
	 * @param role the role to set
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**
	 * @return the available
	 */
	public boolean isAvailable() {
		return available;
	}

	/**
	 * @param available the available to set
	 */
	public void setAvailable(boolean available) {
		this.available = available;
	}

	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}

	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
}
